import { markRaw } from 'vue';
import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';

const pageRouter: Array<RouteRecordRaw> = [
  {
    name: 'geographic-info',
    path: '/geographicinfo',
    component: markRaw(Layout),
    redirect: 'noredirect',
    meta: { title: '地理信息', index: 3 },
    children: [
      {
        name: 'poidata',
        path: 'poidata',
        component: () => import(/* webpackChunkName: "geographic" */ '@/views/geographicInfo/POIData.vue'),
        meta: { title: 'POI主数据', activeMenu: '/geographicinfo' },
      },
      {
        name: 'districtdata',
        path: 'districtdata',
        component: () => import(/* webpackChunkName: "geographic" */ '@/views/geographicInfo/DistrictData.vue'),
        meta: { title: '行政区主数据', activeMenu: '/geographicinfo' },
      },
    ],
  },
];

export default pageRouter;
